﻿using System;
using System.Collections.Generic;
using System.Text;
using Cashier_Utils;

namespace Cashier_Model
{
    [Table(Tablename = "member_integral")]
    public class MemberIntegral: BaseModel
    {
        private Int64 id;

        [Table(Columnname="id", Columntype="bigint", Iskey=true, Iscondition=true, Isdeletefield=true, Fieldothername="i")]
        public Int64 Id
        {
            get { return id; }
            set { id = value; }
        }

        private String enterpriseNo;

        [Table(Columnname = "enterprise_no", Columntype = "varchar", Iscondition = true, Isdeletefield = true, Fieldothername="i")]
        public String EnterpriseNo
        {
            get { return enterpriseNo; }
            set { enterpriseNo = value; }
        }

        private String storeNo;

        [Table(Columnname = "store_no", Columntype = "varchar", Iscondition = true, Fieldothername="i")]
        public String StoreNo
        {
            get { return storeNo; }
            set { storeNo = value; }
        }

        private String memberNo;

        [Table(Columnname = "member_no", Columntype="varchar", Iscondition=true, Fieldothername="i")]
        public String MemberNo
        {
            get { return memberNo; }
            set { memberNo = value; }
        }

        private Int32 type;

        [Table(Columnname="type", Columntype="int", Iscondition=true, Fieldothername="i")]
        public Int32 Type
        {
            get { return type; }
            set { type = value; }
        }

        private Int32 integral;

        [Table(Columnname="integral", Columntype="int")]
        public Int32 Integral
        {
            get { return integral; }
            set { integral = value; }
        }

        private String transNo;

        [Table(Columnname="trans_no", Columntype="varchar", Iscondition=true, Fieldothername="i")]
        public String TransNo
        {
            get { return transNo; }
            set { transNo = value; }
        }

        private String description;

        [Table(Columnname = "description", Columntype="varchar")]
        public String Description
        {
            get { return description; }
            set { description = value; }
        }

        private Boolean? isSuccess;

        [Table(Columnname = "is_success", Columntype = "boolean", Iscondition = true, Fieldothername="i")]
        public Boolean? IsSuccess
        {
            get { return isSuccess; }
            set { isSuccess = value; }
        }

        private DateTime transTime;

        [Table(Columnname="trans_time", Columntype="datetime")]
        public DateTime TransTime
        {
            get { return transTime; }
            set { transTime = value; }
        }

        private String adminUsername;

        [Table(Columnname = "admin_username", Columntype = "varchar", Iscondition = true, Fieldothername="i")]
        public String AdminUsername
        {
            get { return adminUsername; }
            set { adminUsername = value; }
        }

        private String adminName;

        [Table(Columnname = "admin_name", Columntype = "varchar", Iscondition = true, Fieldothername="i")]
        public String AdminName
        {
            get { return adminName; }
            set { adminName = value; }
        }

        private DateTime createTime;

        [Table(Columnname = "create_time", Columntype = "datetime")]
        public DateTime CreateTime
        {
            get { return createTime; }
            set { createTime = value; }
        }
    }
}
